<nav>
      <?php include_partial('menu');?>     
</nav>
<article>
    <h1 id="titulobeca">LISTADO DE UNIVERSIDADES</h1>

<form method="POST" action='<?php echo url_for('becas/guardar');?>'>
    
    <div id="conteneichon">  
<table class="table1">
  <thead>
    <tr>  
      <th colspan="2">Universidades</th>          
      <th></th>      
      <th></th>
      <th></th>
      <th></th>
      <th></th>
    </tr>
  </thead> 
  
  <tbody>
  <?php $pais=''; $num=0; ?>   
    <?php foreach ($universidadez = $nuevo as $universidad):?>   
    <?php if($pais!=$universidad->getPais()->getNombre()){ ?>
    <?php $pais=$universidad->getPais()->getNombre(); $num=0; ?>
 
    <tr>  
      <td colspan="2"><?php echo $universidad->getPais()->getNombre() ?></td>
      <td></td>
      <td></td>
      <td></td>
      <td></td>
      <td></td>
    </tr>

    <?php } ?>
    <?php $num=$num+1; ?>
    <?php if($num % 3 == 1){ ?> 
    <tr>
     <?php } ?> 
      <td>         
          <input type='checkbox' name='universidades[]' value='<?php echo $universidad->getId()?>'/>          
      </td>
  <!--     <td><?php //echo $universidad->getId() ?></td>  -->
      <td><?php echo $universidad->getNombre() ?></td>
  <!--    <td><?php //echo $universidad->getPais()->getNombre() ?></td>
      <td><?php// echo $universidad->getRegion()->getNombre() ?></td>
      <td><?php// echo $universidad->getEnMora() ?></td>      -->
     
     <?php if($num % 3 == 0){ ?> 
    </tr>
     <?php } ?> 
    <!--  </form> -->
    <?php endforeach; ?>

  </tbody>
  
  
  <tfoot>
      
  <tr>            
    <td></td>
    <td></td>
    <td></td>
    <td></td>
    <td></td>   
    <td></td>    
    <td></td>      
  </tr>
  
  <tr>            
    <td></td>
    <td></td>
    <td></td>
    <td></td>
    <td></td>   
    <td></td>    
    <td></td>      
  </tr>
  
  </tfoot>
  
  
  </table>

   </div>
        <br>&nbsp;&nbsp; <input type="submit" value="Guardar" /><br><br>

        
  </form>
</article>